<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<style>
  * {
    margin: 0;
    padding: 0;
  }

  .dingdan {
    text-align: center;
    margin: 100px auto;
    width: 600px;
    height: 170px;
    border: 1px solid rgba(221, 221, 221);
    box-shadow: 0px 5px 5px -5px rgba(0, 0, 0, 0.5);
  }

  .dingdan h4 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 10px;
  }

  table {
    border-collapse: collapse;
  }

  .dingdan tr td {
    width: 120px;
    height: 40px;
    border: 2px solid black;
  }
</style>

<body>
  <div class="dingdan">
    <h4>订单确认</h4>
    <table>
      <tr>
        <td>商品名称</td>
        <td>商品价格</td>
        <td>商品数量</td>
        <td>总价</td>
        <td>收货地址</td>
      </tr>
      <tr>
        <td>小米手机青春plus</td>
        <td>1999元</td>
        <td class="number">2</td>
        <td class="sum">3998元</td>
        <td class="active">赣州市转菜鸟驿站</td>
      </tr>
    </table>
  </div>
  <script>
    let address = prompt('请输入你的收货地址')
    let geshu = prompt('你要买多少个呢？')
    let summ = geshu * 1999
    const number = document.querySelector(".number")
    const sum = document.querySelector('.sum')
    const active = document.querySelector('.active')
    active.innerHTML = `${address}`
    number.innerHTML = `${geshu}`
    sum.innerHTML = `${summ}`

  </script>
</body>

</html>